# 一次性列出所有要生成的静态库
lib_LIBRARIES = libbmp.a liblcd.a libjpg.a

# ========== 配置 libbmp.a ==========
libbmp_a_SOURCES = bmp.c
libbmp_a_CPPFLAGS = -I../include

# ========== 配置 liblcd.a ==========
liblcd_a_SOURCES = lcd.c
liblcd_a_CPPFLAGS = -I../include

# ========== 配置 libjpg.a ==========
libjpg_a_SOURCES = jpg.c
libjpg_a_CPPFLAGS = -I../include \
                    -I/home/xiaohuang/download/jpeg-9d/build/include/

# # 声明要生成的动态库（依赖 libtool，后缀用 .la，最终会生成 .so）
# lib_LTLIBRARIES = libbmp.la liblcd.la libjpg.la

# # ========== 配置 libbmp.so ==========
# # 动态库的源文件（前缀是 libbmp_la_）
# libbmp_la_SOURCES = bmp.c
# # 头文件路径（项目内部）
# libbmp_la_CPPFLAGS = -I../include
# # 动态库版本（当前版本:修订号:年龄，根据实际情况调整）
# libbmp_la_LDFLAGS = -version-info 1:0:0

# # ========== 配置 liblcd.so ==========
# liblcd_la_SOURCES = lcd.c
# liblcd_la_CPPFLAGS = -I../include
# liblcd_la_LDFLAGS = -version-info 1:0:0

# # ========== 配置 libjpg.so ==========
# libjpg_la_SOURCES = jpg.c
# # 头文件路径（项目内部 + JPEG库）
# libjpg_la_CPPFLAGS = -I../include \
#                      -I/home/xiaohuang/download/jpeg-9d/build/include/
# # 链接JPEG动态库（如果需要依赖其他动态库）
# libjpg_la_LDFLAGS = -version-info 1:0:0 \
#                     -L/home/xiaohuang/download/jpeg-9d/build/lib \
#                     -ljpeg